package com.ev.system.dao;

import com.ev.system.domain.DeptDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 部门管理
 */
@Mapper
public interface DeptDao {

	DeptDO get(Long deptId);
	
	List<DeptDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(DeptDO dept);
	
	int update(DeptDO dept);
	
	int remove(Long deptId);
	
	int batchRemove(Long[] deptIds);
	
	Long[] listParentDept();
	
	int getDeptUserNumber(Long deptId);

	DeptDO getIdpathByUserId(Long userId);

	Map<String,Object> getDetail(Long deptId);

	Integer checkRepeat(DeptDO deptDO);

	int batchSave(List<DeptDO> dept);

	int batchUpdate(List<DeptDO> dept);

	List<DeptDO> listForAll();
	List<DeptDO> listForOrg(Map<String,Object> map);

	int listForOrgCount(Map<String,Object> map);

}
